﻿<phone:PhoneApplicationPage 
    x:Class="CodeProject.Podium.WP7.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:CodeProject.Podium.WP7"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    Loaded="PhoneApplicationPage_Loaded"    
    Unloaded="PhoneApplicationPage_Unloaded"
    mc:Ignorable="d" d:DesignWidth="656" d:DesignHeight="480"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Landscape" Orientation="Landscape"
    shell:SystemTray.IsVisible="True">

    <Grid x:Name="LayoutRoot" Background="Transparent">
        <local:ReadyForAction />
    </Grid>
    
    <toolkit:GestureService.GestureListener>
        <toolkit:GestureListener 
            Flick="GestureListener_Flick" 
            DoubleTap="GestureListener_DoubleTap" 
            Tap="GestureListener_Tap" />
    </toolkit:GestureService.GestureListener>
 
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Assets/Icons/LeftArrow.png" Text="Previous" 
                                            x:Name="PreviousButton" Click="PreviousButton_Click" />
            <shell:ApplicationBarIconButton IconUri="/Assets/Icons/RightArrow.png" Text="Next" 
                                            x:Name="NextButton" Click="NextButton_Click" />
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>